package com.liuwei.msmall.product.vo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * sku数据模型
 * @author llww
 * @date 2021/3/8 10:16
 */
@Data
public class SkuInfoVo implements Serializable {

    private String skuName;

    private String skuSubtitle;

    private String skuTitle;

    private Integer priceStatus;


    /**
     * sku价格
     */
    private BigDecimal price;

    /**
     *  sku销售属性值
     */
    private List<String> descar;

    /**
     * 销售属性
     */
    private List<SaleAttrVo> attr;

    private Integer countStatus;


    /**
     * sku图片信息
     */
    @NotEmpty(message = "sku图片信息不能为空")
    private List<SkuImgVo> images;


    /**
     * 优惠信息
     */
    private BigDecimal discount;

    private Integer fullCount;

    private BigDecimal fullPrice;

    private BigDecimal reducePrice;
    /**
     * 会员价格信息
     */
    private List<MemberPriceVo> memberPrice;







    @Data
    public static class MemberPriceVo implements Serializable {

        private Long id;
        private String name;
        private BigDecimal price;

    }

}
